package merchant.service;

import java.util.Map;


import merchant.dao.MerchantDAO;
import merchant.dao.MerchantSettlementDetail;


import com.google.gson.Gson;

import hackathon1212.ServletPojoAdapter;

public class CreateSettlementDetail extends ServletPojoAdapter {
	private static final long serialVersionUID = 1540035898872570320L;

	protected MerchantSettlementDetail getBusinessMethod(Map<String, String[]> params){
		final String json = params.get("settlement")[0];
		return MerchantDAO.get().saveSettlementDetail((new Gson().fromJson(json, MerchantSettlementDetail.class)));
	}
	
	
}
